<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>诗意收藏夹 | 优雅书签管理</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&display=swap">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary: #6c5ce7;
            --secondary: #a29bfe;
            --dark: #2d3436;
            --light: #f7f7f7;
            --light-blue: #dfe6e9;
            --glass-bg: rgba(255, 255, 255, 0.25);
            --glass-border: rgba(255, 255, 255, 0.18);
            --shadow: rgba(50, 50, 93, 0.1) 0px 6px 12px -2px, rgba(0, 0, 0, 0.1) 0px 3px 7px -3px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Noto Serif SC', serif;
            background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px;
            background-attachment: fixed;
            background-size: cover;
            position: relative;
            overflow-x: hidden;
        }
        
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3') center/cover no-repeat;
            opacity: 0.15;
            z-index: -1;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            gap: 25px;
        }
        
        /* 侧边栏样式 */
        .sidebar {
            width: 260px;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 25px 15px;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
            transition: var(--transition);
        }
        
        .sidebar-header {
            padding: 0 10px 20px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        
        .sidebar-header h2 {
            color: var(--dark);
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .category-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .category-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--dark);
            text-decoration: none;
        }
        
        .category-item:hover, .category-item.active {
            background: rgba(108, 92, 231, 0.15);
            color: var(--primary);
        }
        
        .category-item i {
            width: 22px;
            text-align: center;
            font-size: 1.1rem;
        }
        
        .category-icon {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 8px;
        }
        
        /* 主要内容区域 */
        .main-content {
            flex: 1;
        }
        
        header {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
            border: 1px solid var(--glass-border);
            text-align: center;
        }
        
        h1 {
            font-size: 2.5rem;
            color: var(--dark);
            margin-bottom: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            background: linear-gradient(45deg, var(--primary), #0984e3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .subtitle {
            font-size: 1.1rem;
            color: var(--dark);
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.85;
        }
        
        .controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .search-box {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-box input {
            width: 100%;
            padding: 14px 20px 14px 50px;
            border: none;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.7);
            box-shadow: var(--shadow);
            font-size: 1rem;
            transition: var(--transition);
            font-family: inherit;
        }
        
        .search-box input:focus {
            outline: none;
            box-shadow: 0 5px 15px rgba(94, 114, 228, 0.2);
            background: rgba(255, 255, 255, 0.9);
        }
        
        .search-box i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
        }
        
        /* 书签卡片容器 */
        .bookmarks-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }
        
        .bookmark-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 18px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
            border: 1px solid var(--glass-border);
        }
        
        .bookmark-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 25px rgba(94, 114, 228, 0.2);
        }
        
        .card-header {
            padding: 20px;
            background: linear-gradient(135deg, var(--primary) 0%, #825ee4 100%);
            color: white;
            display: flex;
            align-items: center;
        }
        
        .icon-container {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .icon-container img {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }
        
        .card-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .card-title a {
            color: white;
            text-decoration: none;
        }
        
        .card-title a:hover {
            text-decoration: underline;
        }
        
        .card-date {
            font-size: 0.85rem;
            opacity: 0.85;
            font-family: sans-serif;
        }
        
        .card-body {
            padding: 20px;
            flex-grow: 1;
        }
        
        .card-description {
            margin-bottom: 15px;
            color: var(--dark);
            font-size: 0.95rem;
            line-height: 1.5;
        }
        
        .card-notes {
            background: rgba(255, 255, 255, 0.4);
            padding: 15px;
            border-radius: 10px;
            font-size: 0.9rem;
            color: var(--dark);
            margin-bottom: 15px;
            font-style: italic;
            border-left: 3px solid var(--primary);
        }
        
        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
        }
        
        .card-tag {
            background: rgba(108, 92, 231, 0.15);
            color: var(--primary);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            backdrop-filter: blur(5px);
        }
        
        .card-footer {
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.3);
            display: flex;
            justify-content: flex-end;
            border-top: 1px solid rgba(0,0,0,0.05);
        }
        
        .visit-btn {
            padding: 8px 20px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            font-family: inherit;
            backdrop-filter: blur(5px);
        }
        
        .visit-btn:hover {
            background: #5649c5;
            transform: translateY(-2px);
        }
        
        footer {
            text-align: center;
            padding: 40px 0 20px;
            color: var(--dark);
            font-size: 0.9rem;
            margin-top: 50px;
            opacity: 0.8;
        }
        
        /* 响应式设计 */
        .menu-toggle {
            display: none;
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 100;
            background: var(--primary);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        @media (max-width: 1100px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                margin-bottom: 20px;
                position: relative;
            }
            
            .category-list {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .category-item {
                min-width: 150px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            header {
                padding: 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .bookmarks-container {
                grid-template-columns: 1fr;
            }
            
            .category-list {
                flex-direction: column;
            }
            
            .menu-toggle {
                display: flex;
            }
            
            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                top: 20px;
                left: 20px;
                bottom: 20px;
                width: calc(100% - 40px);
                z-index: 99;
                overflow-y: auto;
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
        }
        
        @media (max-width: 480px) {
            .controls {
                flex-direction: column;
            }
            
            .search-box {
                max-width: 100%;
            }
        }
    </style>
</head>
<body>
    <div class="menu-toggle" id="menuToggle">
        <i class="fas fa-bars"></i>
    </div>
    
    <div class="container">
        <!-- 左侧分类栏 -->
        <div class="sidebar" id="sidebar">
            <div class="sidebar-header">
                <h2><i class="fas fa-tags"></i> 分类导航</h2>
            </div>
            <div class="category-list">
                <a href="#" class="category-item active">
                    <div class="category-icon">
                        <i class="fas fa-star"></i>
                    </div>
                    <span>全部收藏</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-search"></i>
                    </div>
                    <span>搜索引擎</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-code"></i>
                    </div>
                    <span>开发工具</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-paint-brush"></i>
                    </div>
                    <span>设计资源</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-book"></i>
                    </div>
                    <span>学习资源</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-video"></i>
                    </div>
                    <span>视频平台</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-music"></i>
                    </div>
                    <span>音乐娱乐</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-shopping-cart"></i>
                    </div>
                    <span>购物网站</span>
                </a>
                <a href="#" class="category-item">
                    <div class="category-icon">
                        <i class="fas fa-newspaper"></i>
                    </div>
                    <span>新闻资讯</span>
                </a>
            </div>
        </div>
        
        <!-- 主要内容区域 -->
        <div class="main-content">
            <header>
                <h1>诗意收藏夹</h1>
                <p class="subtitle">优雅整理您的网络足迹，每个书签都是知识的灯塔</p>
            </header>
            
            <div class="controls">
                <div class="search-box">
                    <i class="fas fa-search"></i>
                    <input type="text" id="search-input" placeholder="搜索书签名称、描述或标签...">
                </div>
            </div>
            
            <div class="bookmarks-container" id="bookmarks-container">
                <!-- 书签卡片将通过JavaScript动态生成 -->
            </div>
            
            <footer>
                <p>© 2023 诗意收藏夹 | 优雅书签管理工具 | 静态本地网站</p>
                <p>每一枚书签都是智慧的结晶，时光的印记</p>
            </footer>
        </div>
    </div>

    <script>
        // 书签数据
        const bookmarks = [
            {
                title: "Google",
                tags: ["搜索引擎", "常用"],
                url: "https://www.google.com",
                description: "全球最流行的搜索引擎，提供网页、图片、视频等多种搜索服务",
                iconUrl: "https://www.google.com/favicon.ico",
                notes: "每日必用工具，搜索结果精准快速",
                createdAt: "2023-10-01"
            },
            {
                title: "GitHub",
                tags: ["开发工具", "编程"],
                url: "https://github.com",
                description: "全球最大的代码托管平台，用于版本控制和协作开发",
                iconUrl: "https://github.githubassets.com/favicons/favicon.png",
                notes: "开源项目的宝库，程序员必备",
                createdAt: "2023-09-15"
            },
            {
                title: "MDN Web Docs",
                tags: ["开发工具", "文档", "学习"],
                url: "https://developer.mozilla.org",
                description: "最权威的Web技术文档，包含HTML、CSS、JavaScript等前端技术",
                iconUrl: "https://developer.mozilla.org/favicon-48x48.cbbd161b.png",
                notes: "Web开发者的圣经，文档详尽准确",
                createdAt: "2023-08-22"
            },
            {
                title: "Dribbble",
                tags: ["设计资源", "灵感"],
                url: "https://dribbble.com",
                description: "设计师展示作品、获取灵感的平台，全球顶尖设计社区",
                iconUrl: "https://cdn.dribbble.com/assets/favicon-b38525134603b9513174ec887944bde1a869eb6cd414f2d14ee5489a7e15c947.ico",
                notes: "设计灵感来源，每日必看",
                createdAt: "2023-07-30"
            },
            {
                title: "Wikipedia",
                tags: ["百科", "学习", "常用"],
                url: "https://www.wikipedia.org",
                description: "全球最大的免费百科全书，由志愿者共同编辑",
                iconUrl: "https://www.wikipedia.org/static/favicon/wikipedia.ico",
                notes: "知识查询首选，内容全面丰富",
                createdAt: "2023-06-18"
            },
            {
                title: "YouTube",
                tags: ["视频", "学习", "娱乐"],
                url: "https://www.youtube.com",
                description: "全球最大的视频分享平台，提供各种类型的视频内容",
                iconUrl: "https://www.youtube.com/s/desktop/4d5046c0/img/favicon_144x144.png",
                notes: "教程学习、音乐娱乐的宝库",
                createdAt: "2023-05-05"
            },
            {
                title: "Stack Overflow",
                tags: ["开发工具", "问答"],
                url: "https://stackoverflow.com",
                description: "程序员问答社区，解决各种编程问题的首选平台",
                iconUrl: "https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico",
                notes: "遇到编程问题时的救星",
                createdAt: "2023-04-12"
            },
            {
                title: "Notion",
                tags: ["工具", "笔记", "常用"],
                url: "https://www.notion.so",
                description: "多功能笔记和项目管理工具，支持数据库、看板等多种视图",
                iconUrl: "https://www.notion.so/images/favicon.ico",
                notes: "个人知识管理核心工具，功能强大",
                createdAt: "2023-03-20"
            },
            {
                title: "Figma",
                tags: ["设计资源", "工具"],
                url: "https://www.figma.com",
                description: "基于浏览器的协作式UI设计工具，支持实时协作",
                iconUrl: "https://static.figma.com/app/icon/1/favicon.ico",
                notes: "UI/UX设计首选工具，协作功能强大",
                createdAt: "2023-02-14"
            },
            {
                title: "Coursera",
                tags: ["学习", "教育"],
                url: "https://www.coursera.org",
                description: "全球领先的在线学习平台，提供大学课程和专业证书",
                iconUrl: "https://d3njjcbhbojbot.cloudfront.net/web/images/favicons/apple-touch-icon-57x-0ed722f6d0.png",
                notes: "高质量课程资源，提升专业技能",
                createdAt: "2023-01-05"
            },
            {
                title: "Spotify",
                tags: ["音乐娱乐", "音频"],
                url: "https://www.spotify.com",
                description: "全球最受欢迎的音乐流媒体服务平台，拥有海量歌曲库",
                iconUrl: "https://open.scdn.co/cdn/images/favicon.0f31d2ea.ico",
                notes: "每日音乐伴侣，个性化推荐精准",
                createdAt: "2022-12-18"
            },
            {
                title: "Adobe Creative Cloud",
                tags: ["设计资源", "工具"],
                url: "https://www.adobe.com/creativecloud.html",
                description: "Adobe全套创意软件集合，包含Photoshop、Illustrator等",
                iconUrl: "https://www.adobe.com/favicon.ico",
                notes: "专业设计师必备工具套件",
                createdAt: "2022-11-22"
            }
        ];

        // 渲染书签卡片
        function renderBookmarks(bookmarksArray) {
            const container = document.getElementById('bookmarks-container');
            container.innerHTML = '';
            
            bookmarksArray.forEach(bookmark => {
                const card = document.createElement('div');
                card.className = 'bookmark-card';
                
                // 格式化日期
                const formattedDate = new Date(bookmark.createdAt).toLocaleDateString('zh-CN', {
                    year: 'numeric',
                    month: 'long',
                    day: 'numeric'
                });
                
                card.innerHTML = `
                    <div class="card-header">
                        <div class="icon-container">
                            <img src="${bookmark.iconUrl}" alt="${bookmark.title} icon" onerror="this.onerror=null; this.src='data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'%236c5ce7\'><path d=\'M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z\'/></svg>';">
                        </div>
                        <div>
                            <div class="card-title">
                                <a href="${bookmark.url}" target="_blank">${bookmark.title}</a>
                            </div>
                            <div class="card-date">收藏于 ${formattedDate}</div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="card-description">${bookmark.description}</div>
                        <div class="card-notes">${bookmark.notes}</div>
                        <div class="card-tags">
                            ${bookmark.tags.map(tag => `<span class="card-tag">${tag}</span>`).join('')}
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="visit-btn" onclick="window.open('${bookmark.url}', '_blank')">
                            <i class="fas fa-external-link-alt"></i> 访问网站
                        </button>
                    </div>
                `;
                
                container.appendChild(card);
            });
        }
        
        // 初始化渲染
        document.addEventListener('DOMContentLoaded', () => {
            renderBookmarks(bookmarks);
            
            // 搜索功能
            const searchInput = document.getElementById('search-input');
            searchInput.addEventListener('input', (e) => {
                const searchTerm = e.target.value.toLowerCase();
                const filteredBookmarks = bookmarks.filter(bookmark => 
                    bookmark.title.toLowerCase().includes(searchTerm) ||
                    bookmark.description.toLowerCase().includes(searchTerm) ||
                    bookmark.notes.toLowerCase().includes(searchTerm) ||
                    bookmark.tags.some(tag => tag.toLowerCase().includes(searchTerm))
                );
                renderBookmarks(filteredBookmarks);
            });
            
            // 分类过滤
            const categoryItems = document.querySelectorAll('.category-item');
            categoryItems.forEach(item => {
                item.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    // 移除所有active类
                    categoryItems.forEach(i => i.classList.remove('active'));
                    // 添加active类到当前项
                    this.classList.add('active');
                    
                    const category = this.querySelector('span').textContent;
                    if (category === '全部收藏') {
                        renderBookmarks(bookmarks);
                        return;
                    }
                    
                    const filteredBookmarks = bookmarks.filter(bookmark => 
                        bookmark.tags.some(t => t === category)
                    );
                    renderBookmarks(filteredBookmarks);
                });
            });
            
            // 移动端菜单切换
            const menuToggle = document.getElementById('menuToggle');
            const sidebar = document.getElementById('sidebar');
            
            menuToggle.addEventListener('click', () => {
                sidebar.classList.toggle('active');
            });
        });
    </script>
</body>
</html>